#!/bin/sh
#

ulimit -c unlimited

blocksizes="256 512 1024 4096 8192 16384 32768"
testfile_sizes="100MiB 500MiB 1GiB"
max_threads=50

(
for blk in $blocksizes
do
    for s in $testfile_sizes
    do
        t=1
        while [ $t -le $max_threads ]; do
                echo "Size: $s, Blocksize: $blk, Threads: $t"
            ./dperf -s $s -b $blk -t $t
                t=`expr $t + 1`
        done
    done
done
) 2>&1 | tee log.txt